/* 登录页面样式 */
.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 背景装饰圆圈 */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.login-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -75px;
  animation-delay: 2s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* 主要内容区域 */
.login-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 头部Logo区域 */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  color: white;
}

.logo-icon {
  font-size: 48px;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
}

/* 登录卡片 */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: cardAppear 0.8s ease-out 0.2s both;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-header {
  text-align: center;
  margin-bottom: 30px;
}

.card-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.card-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* 表单样式 */
.login-form {
  margin-bottom: 20px;
}

.login-form .adm-form-item {
  margin-bottom: 20px;
}

.login-form .adm-form-item-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

/* 自定义输入框样式 */
.custom-input {
  border-radius: 12px !important;
  border: 2px solid #e8e8e8 !important;
  background: #f8f9fa !important;
  transition: all 0.3s ease !important;
  height: 48px !important;
  font-size: 16px !important;
}

.custom-input:focus,
.custom-input:focus-within {
  border-color: #667eea !important;
  background: white !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.input-icon {
  margin-right: 8px;
  font-size: 16px;
}

/* 验证码输入组 */
.code-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.code-input {
  flex: 1;
}

.send-code-btn {
  height: 48px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 500 !important;
  min-width: 100px !important;
  transition: all 0.3s ease !important;
}

.send-code-btn:hover:not(.disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
}

.send-code-btn.disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
}

/* 提交按钮 */
.submit-item {
  margin-top: 30px;
}

.login-btn {
  height: 52px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.login-btn:active {
  transform: translateY(0) !important;
}

/* 底部协议 */
.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-footer p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.login-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-container {
    padding: 15px;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .card-header h2 {
    font-size: 20px;
  }
  
  .code-input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .send-code-btn {
    width: 100% !important;
  }
}

/* 错误状态样式 */
.adm-form-item-error .custom-input {
  border-color: #ff4d4f !important;
  background: #fff2f0 !important;
}

.adm-form-item-error .adm-form-item-error-info {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
}

/* 加载状态 */
.adm-button-loading {
  opacity: 0.8;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .login-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .card-header h2 {
    color: #fff;
  }
  
  .card-header p {
    color: #ccc;
  }
  
  .login-form .adm-form-item-label {
    color: #fff;
  }
  
  .custom-input {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #fff !important;
  }
  
  .custom-input:focus,
  .custom-input:focus-within {
    background: #333 !important;
  }
}

